﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Service.Share;

namespace Windows.Admin.Service
{
    public interface IEmployeeService
    {
        /// <summary>
        /// 获取员工列表基础资料
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<List<EmployeeResponse>> GetBasicEmployees(IdsRequest request);
        /// <summary>
        /// 获取员工列表
        /// </summary>
        /// <param name="info"></param>
        /// <param name="isEnable"></param>
        /// <returns></returns>
        Task<PageResponse<EmployeeResponse>> Query(PageRequest<EmployeeRequest> request);
        /// <summary>
        /// 获取id的员工详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<EmployeeResponse> Detail(int id);
        /// <summary>
        /// 员工保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        /// <exception cref="ApiException"></exception>
        Task Save(EmployeeSaveRequest request);
        /// <summary>
        /// 绑定用户
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task BindUser(BindUserRequest request);
        /// <summary>
        /// 员工删除
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Remove(IdsRequest request);
        /// <summary>
        /// 获取聊天界面的员工列表
        /// </summary>
        /// <returns></returns>
        Task<List<ChatEmployeeResponse>> GetChatEmployees();
        /// <summary>
        /// 获取聊天界面的员工详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        /// <exception cref="ApiException"></exception>
        Task<EmployeeResponse> GetChatEmployeeDetail(long id);
    }
}
